Ext.define('AM.view.dict.List' ,{
    extend: 'Ext.grid.Panel',
    alias : 'widget.dictlist',
    title : '字典管理',
    store: 'Dicts',
    height: 350,
    viewConfig: {
        stripeRows: true
    },
    dockedItems: [{
        xtype: 'toolbar',
        items: [
        {
            iconCls: 'icon-add',
            text: '添加',
            action: 'addNew'
        }, {
            iconCls: 'icon-delete',
            text: '刪除',
            action: 'delete'
        }]
    },{
        xtype: 'pagingtoolbar',
        store: 'Dicts',
        dock: 'bottom',
        displayInfo: true
    }],    
    columns: [
		{header:'主键',dataIndex:'id'},
		{header:'类型',dataIndex:'type',renderer:DictFnt.rendererDictType},
		{header:'代码',dataIndex:'code'},
		{header:'名称',dataIndex:'name'},
		{header:'拼音',dataIndex:'pinyin'},
		{header:'说明',dataIndex:'description'}
    ]
});
